package com.google.code.server.http;

import java.io.IOException;

import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;

/**
 * 
 * @author Nadim Benabdenbi
 * 
 */
public class HttpErrorHandler implements HttpHandler {
	int errorCode;
	
	public HttpErrorHandler(int errorCode) {
		errorCode = 404;
	}
	
	public void handle(HttpExchange exchange) throws IOException {
		exchange.sendResponseHeaders(errorCode, 0);
	}
	
}